//
//  XKDatePickerView.h
//  SecurityNote
//
//  Created by joonsheng on 14-8-16.
//  Copyright (c) 2019年 XuKai. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol XKDatePickerViewDelegate <NSObject>

//协议，代理
@optional

-(void)kk_didCancelSelectDate;

-(void)kk_didSaveDate;

-(void)kk_didDateChangeTo;

@end


@interface XKDatePickerView : UIView


@property (nonatomic, weak) UIDatePicker * datePickers;

@property (nonatomic, weak) id<XKDatePickerViewDelegate> delegate;

+(XKDatePickerView *)initWithPicker:(CGRect )viewFrame;

+(XKDatePickerView *)initWithPicker;

//获取当前时间，格式自己定义
+(NSString *)getNowDateFormat:(NSString *)date;

-(NSString *)getNowDatePicker:(NSString *)date;


-(void) resetToZero;

-(void) kk_popDatePickerView;

-(void) kk_hiddenDatePickerView;

-(void) kk_datePickerWillHidden:(BOOL)hidder;



@end
